<h1>New Customer Record</h1>

<% form_tag :action => "create" do %>
  <%= flash[:notice] %>
  <p>
    <%= "First name" %>
    <%= text_field :customer_record, :fname, :autocomplete => "off" %>
  </p>
  <p>
    <%= "Last name" %>
    <%= text_field :customer_record, :lname, :autocomplete => "off" %>
 </p>
  <p>
    <%= "Phone 1" %>
    <%= text_field :customer_record, :mobile, :autocomplete => "off" %>
  </p>

  <p>
    <%= "Email" %>
    <%= text_field :customer_record, :email, :autocomplete => "off" %>
  </p>
  <p>
    <%= submit_tag "Create" %>
  
 </p>
  <p>
    <%= "phone 2" %>
    <%= text_field :customer_record, :work %>
  </p>	<p>
    <%= "street" %>
    <%= text_field :customer_record, :street %>
  </p>
  <p>
    <%= "state" %>
    <%= text_field :customer_record, :state %>
  </p>
  <p>
    <%= "zip" %>
    <%= text_field :customer_record, :zip %>
  </p>
<p>
    <%= "notes" %>
    <%= hidden_field :customer_record, :notes %>
  </p>
  <p>
    <%= "contact_preference" %>
    <%= hidden_field :customer_record, :contact_preference %>
  </p>
  <p>
    <%= "customer_state_id" %>
    <%= hidden_field :customer_record, :customer_state_id %>
  </p>
<% end %>

<%= link_to 'Back', :controller => "customer_records" %>
